<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="map" uri="/map" %>  
<%
	String basepath = request.getContextPath();
%>

<script type="text/javascript">

$(function(){
	
	var config = ${map:json(config)};
	
	loader.load(basepath+"/"+config["module.namespace"]+"/"+"jcxxx.js",function(){
		
		var module = new jcxxx();
		
		app.module=module;
		
		app.module.init(config);

	});
	
});

</script>

<!-- 查询区 -->
<div class="core-panel" fit="false" style="padding:2px;">
    <form class="core-form" col="4" id="listForm" type="query">
    	<table>
			<tr>
			  <td>项目：</td><td><input name="JCXXX_XM" ></td>
			  <td>开采类型：</td><td>
				  <select name="JCXXX_LX" onchange="app.module.query()">
					  <option value="">--全部--</option>
					  	<c:forEach items="${kclxs }" var="kclx">
				  			<option value="${kclx.CODE_KEY}">${kclx.CODE_VALUE}</option>
				  		</c:forEach>
				  </select>
			  </td>
			  
			  <td><a class="core-button" icon="icon-query" id="query" href="javascript:app.module.query();">查询</a></td>
			</tr>
		</table>
    </form>
</div>	

<div class="blank5"></div>

<!-- 列表按钮区 -->
<jsp:include page="/commons/commons_module_rights_list.jsp"></jsp:include>

<div class="blank5"></div>

<!-- 列表区 -->
<table class="core-grid" id="list" title="${module.MODULE_NAME}列表" url="<%=basepath %>/${config['module.namespace']}/list" idField="${config['module.idCol']}" pagination="true" style="height:405px;" clickList="app.module.clickList" listLoaded="app.module.listLoaded" listParams="app.module.listParams" >
	<thead>
		<tr>
			<th field="JCXXX_ID" checkbox="true"></th>
			<th field="JCXXX_XH" width="20" align="center">序号</th>
			<th field="JCXXX_XM_MC" width="60" align="center">项目</th>
			<th field="JCXXX_TJ" width="300">安全生产条件</th>
			<th field="JCXXX_LX_MC" width="40" align="center">开采类型</th>
			<th field="SJZT_MC" width="40" align="center">数据状态</th>
		</tr>
	</thead>
</table>

<div class="blank5"></div>

<!-- 表单区 -->
<div class="core-panel" fit="false" title="${module.MODULE_NAME}" style="padding:10px;">
	<form id="itemForm" class="core-form" col="6" type="item">
	 	<input type="hidden" name="${config['module.idCol']}" /> 
	 	<input type="hidden" name="SJZT" />
		<table>
			<tr>
			  <td>序号：</td>
			  <td><input name="JCXXX_XH" class="disabled check" req="false" readonly></td>
			  <td>项目：</td>
			  <td>
			  <select name="JCXXX_XM" class="disabled check" readonly>
				  	<c:forEach items="${xmlxs }" var="xmlx">
			  			<option value="${xmlx.CODE_KEY}">${xmlx.CODE_VALUE}</option>
			  		</c:forEach>
		  		</select>
			  </td>
			  <td>开采类型：</td>
			  <td>
			  	<select name="JCXXX_LX" class="disabled check" readonly>
				  	<c:forEach items="${kclxs }" var="kclx">
			  			<option value="${kclx.CODE_KEY}">${kclx.CODE_VALUE}</option>
			  		</c:forEach>
		  		</select>
			  </td>
			</tr>
			<tr>
			  <td>安全生产条件：</td>
			  <td colspan="5"><textarea name="JCXXX_TJ" class="disabled check" req="false" readonly rows="5"  style="width:99%" ></textarea></td>
			</tr>
			<jsp:include page="/commons/commons_module_rights_item.jsp"></jsp:include>
		</table>
		<jsp:include page="/commons/commons_module_item_info_simple.jsp"></jsp:include>
	</form>
</div>
<div class="clear"></div>